<include file="__PUBLIC__/header.html" />
<css file="__ROOT__/static/jquery/css/redmond/jquery-ui-1.10.0.custom.css"/>
<jquery/> 
<js file="__ROOT__/static/jquery/js/jquery-ui-1.10.0.custom.min.js"/>
<js file="__PUBLIC__/js/addshow.js" />
<css file="__PUBLIC__/css/addshow.css" />
<script>
    $(function() {
        $( "#tabs" ).tabs();
    });
</script>
</head>
<body>
	<form action="{|U('add')}" method="post">

		<input type="hidden" name="pid" value="{$hd.get.pid|default:0}"/>
		<input type="hidden" name="path" value="{$hd.get.path|default:0}"/>
            <div id="tabs">
                <ul>
                    <li><a href="#tabs-1">基本设置</a></li>
                    <li><a href="#tabs-2">模板设置</a></li>
                    <li><a href="#tabs-3">静态规则</a></li>
                </ul>
                <div id="tabs-1">
                    <table class="table2">
                        <tr>
                            <td width="75">栏目名称</td>
                            <td>
                                <input type="text" class="w100" name="catname"/> <span class="desc_n"></span>
                            </td>
                        </tr>
                        <tr>
                            <td>允许发表文章</td>
                            <td valign="top">

                                是 <input type="radio" style="vertical-align:middle;" value="1" name="issend" checked/>&nbsp | &nbsp<input type="radio" value="0" style="vertical-align:middle;" name="issend"/> 否
                            </td>
                        </tr>
                        <tr>
                            <td>静态目录</td>
                            <td>
                                <input type="text"class="w200" name="catdir"/> <span class="desc_d"></span>
                            </td>
                        </tr>
                        <tr>
                            <td>关键字</td>
                            <td>
                                <input type="text"class="w200" name="keywords"/> <span class="desc_k"></span>
                            </td>
                        </tr>
                        <tr>
                            <td>栏目描述</td>
                            <td>
                                <textarea name="description" class="w300 h100"></textarea>
                            </td>
                        </tr>
                    </table>
                </div>
                <div id="tabs-2">
                    <table class="table2">
                        <tr>
                            <td width="75">栏目模板</td>
                            <td>
                                <input type="text" name="cattpl" class="w200" value="list.html"/><button class="bt2">选择模板</button><span class="desc"></span>
                            </td>
                        </tr>
                        <tr>
                            <td>内容页模板</td>
                            <td>
                                <input type="text" name="arctpl" class="w200" value="arc.html"/><button class="bt2">选择模板</button><span class="desc"></span>
                            </td>
                        </tr>
                    </table>
                </div>
                <div id="tabs-3">
                    <table class="table2">
                        <tr>
                            <td width="75">栏目静态</td>
                            <td>
                                <input type="text" name="cathtml" class="w200" value=""/><span class="desc">{htmlpath}静态根目录 {catdir}列表目录 {cid}栏目ID</span>
                            </td>
                        </tr>
                        <tr>
                            <td>内容页静态</td>
                            <td>
                                <input type="text" name="archtml" class="w200" value=""/><span class="desc">{htmlpath}根目录 {catdir}列表目录  {y}年 {m}月 {d}日 {aid}文章ID</span>
                            </td>
                        </tr>
                    </table>
                </div>
                <div>
                    <input type="submit" class="bt1" value="添加栏目"/>
                </div>
            </div>

        </form>
</body>
</html>